home *** CD-ROM | disk | FTP | other *** search
- #include <stdarg.h>
- #include <stdio.h>
-
- #include <proto/exec.h>
-
- /************************************************************************/
-
- #ifdef __GNUC__
-
- void PutChProc(void);
-
- asm("
- .globl _PutChProc
-
- _PutChProc:
- movl a3@,a0
- movb d0,a0@+
- movl a0,a3@
- rts");
-
- #else /* !__GNUC__ */
-
- static void __asm
- #ifdef SMALL_DATA
- __saveds
- #endif
- PutChProc(register __d0 char c, register __a3 char **Dest)
-
- {
- **Dest=c;
- (*Dest)++;
- }
-
- #endif /* __GNUC__ */
-
- int vsprintf(char *String, const char *FormatString, va_list Args)
-
- {
- char *t;
-
- t=String;
- RawDoFmt((char *)FormatString,Args,PutChProc,&t);
- return t-String-1;
- }
-